import React, { memo } from 'react'
import MyTarbar from './component/MyTarbar'
import { router } from './router/router'
import { useRoutes } from 'react-router-dom'
const App = memo(() => {
  return (
    <div>
      <div>
        {useRoutes(router)}
      </div>
      <div>
        <MyTarbar></MyTarbar>
      </div>
    </div>
  )
})

export default App